Method and apparatus for basis conversion in finite field

ABSTRACT

There are provided efficient basis conversion matrices D sd  and D ds  and a basis conversion method in a finite field GF(2 n ) using the basis conversion matrices for a case where a defining polynomial is a pentanomial, x n +x k(3) +x k(2) +x k(1) +1, and the exponents n, k(3), k(2), and (k1) satisfy the condition, n−k(3)&gt;k(3)−k(1). In addition, an apparatus for the basis conversion in the finite field GF(2 n ) is provided. Since a pentanomial having a general form in an arbitrary degree is used as the defining polynomial, basis conversion between a standard representation and a dual representation is efficiently performed. Consequently, a dual basis multiplier can be efficiently implemented.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The present invention relates to basis conversion in a finite field GF(2^(n)). More particularly, the present invention relates to an apparatus and method for basis conversion between a standard representation on a standard basis and a dual representation on a dual basis.

[0003] 2. Description of the Related Art

[0004] A finite field GF(2^(n)) is a number system including 2^(n) elements. Based on the fact that each element of a finite field can be represented with n bits, practical applications of the finite field may be accomplished. Practical applications, such as error correction codes and implementation of an elliptic curve cryptosystem in hardware, frequently use calculations in GF(2^(n)). An apparatus for coding/decoding Reed-Solomon codes is required to perform calculations in GF(2^(n)), and an encryption/decryption apparatus of an elliptic curve cryptosystem is required to perform calculations in GF(2^(n)), where “n” is a large value.

[0005] A finite field GF(2) is a number system having addition and multiplication rules defined by Formula (1) and having only binary numbers 0 and 1 as its elements.

0+0=1+1=0

0+1=1+0=1

0×0=1×0=0×1=0

1×1=1   (1)

[0006] Here, the addition is an XOR (exclusive OR) operation, and the multiplication is an AND operation.

[0007] The finite field GF(2^(n)) (where n>1) is a number system including 2^(n) elements. In this number system, addition and multiplication correspond to arithmetic modulo with respect to an irreducible n-degree polynomial having coefficients in GF(2). The irreducible n-degree polynomial is referred to as a defining polynomial. When a root of the defining polynomial is represented with α, an element of the finite field has a standard representation defined by Formula (2).

a+a ₁ α+a ₂ α ² + . . . +a _(n−1)α^(n−1)=(a ₀ ,a ₁ ,a ₂ , . . . a _(n−1)) a _(i) ∈GF(2)   (2)

[0008] Multiplication of two elements of GF(2^(n)) is performed by polynomial multiplication of α followed by a modulo operation with the help of the defining polynomial. Addition of two elements of GF(2^(n)) is performed by polynomial addition of α.

[0009] There are three typical representative methods of representing the elements of the finite field GF(2^(n)). These methods are defined by different bases. In a standard representation, the elements of the finite field GF(2^(n)) are represented with a standard basis (or polynomial basis) {1, α, α², α³, . . . , α^(n−1)}. In addition, there are a dual basis and a normal basis.

[0010] Formula (3) defines two bases {β_(i)} and {γ_(j)} which are dual to each other.

Tr(δβ_(i)γ_(j))=0(i≠j), 1(i=j), δ∈GF(2^(n))   (3)

[0011] In other words, each of the two bases {β₀, β₁, β₂, . . . , β_(n−)} and {γ₀, γ₁, γ₂, . . . , γ_(n−1)} satisfying Formula (3) is a dual basis of the other with respect to Tr(δ·).

[0012] When a subset {β, β², β⁴, β⁸, . . . , β_(2−n)} of GF(2^(n)) is a basis, the basis is called a normal basis.

[0013] The complexity of a logic circuit required for arithmetic in GF(2^(n)) essentially depends on a particular method by which the elements of a finite field are represented. Representative finite field multipliers are a “dual basis multiplier,” a “normal basis multiplier,” and a “standard basis multiplier”. A dual basis multiplier can be implemented using a linear feedback shift register and is known as requiring a least chip area if basis conversion is excluded. Finite field arithmetic using a normal basis is very efficient for division, square calculation, and exponential calculation, but reduction of a chip area for high degrees is desired. Generally, a standard basis multiplier does not require basis conversion and is easier in terms of extension to a higher-degree finite field and design compared to dual and normal basis multipliers.

[0014] Extension to a higher-degree finite field is more difficult in a dual basis multiplier than in a standard basis multiplier because of the complexity of a basis conversion matrix. The present invention provides a basis conversion matrix and method for a dual basis multiplier.

[0015] The following description concerns an algorithm performed by a dual basis multiplier.

[0016] Let's assume that a polynomial X^(n)+X^(k(s))+X^(k(s−1))+ . . . +X^(k(1))+1 is a defining polynomial of GF(2^(n)), A and B are elements of GF(2^(n)), and a basis {β₀, β₁, β₂, . . . , β_(n−1)} is a dual basis of a standard basis {1, α, α², α³, . . . , α^(n−1)}. A matrix D_(sd) is for standard representation to dual representation conversion, and a matrix D_(ds) is for dual representation to standard representation conversion. In order to calculate a multiplication C=AB, a case where both input and output are dual representations and a case where both input and output are standard representations will be described.

[0017] Firstly, the case where both input and output are dual representations, as shown in Formula (4), will be described.

A=a ₀β₀ +a ₁β₁ +a ₂β₂ + . . . +a _(n−1)β_(n−1)=(a ₀ ,a ₁ ,a ₂ , . . . , a _(n−1))

B=b ₀β₀ +b ₁β₁ +b ₂β₂ + . . . +b _(n−1)β_(n−1)=(b ₀ ,b ₁ ,b ₂ , . . . , b _(n−1))   (4)

[0018] According to the algorithm of the dual basis multiplier, basis conversion is performed even if an input is a dual representation. After obtaining D_(ds)B by performing basis conversion on an input element B, matrix calculation C=MD_(ds)B is performed. Here, a matrix M is defined by Formula (5). $\begin{matrix} {M = \begin{pmatrix} a_{0} & a_{1} & a_{2} & \cdots & a_{n - 2} & a_{n - 1} \\ a_{1} & a_{2} & a_{3} & \cdots & a_{n - 1} & a_{n} \\ a_{2} & a_{3} & a_{4} & \cdots & a_{n} & a_{n + 1} \\ \vdots & \vdots & \vdots & ⋰ & \vdots & \vdots \\ a_{n - 1} & a_{n} & a_{n + 1} & \cdots & a_{{2n} - 3} & a_{{2n} - 2} \end{pmatrix}} & (5) \end{matrix}$

[0019] Here, a_(n+i)=a_(i)+a_(i+k(1))+a_(i+k(2))+a_(i+k(3))+ . . . +a_(i+k(s)) (i≧0).

[0020] Next, the case where both input and output are standard representations, as shown in Formula (6), will be described.

A=a ₀α⁰ +a ₁α¹ +a ₂α² + . . . +a _(n−1)α^(n−1)=(a ₀ ,a ₁ ,a ₂ , . . . , a _(n−1))

B=b ₀α⁰ +b ₁α¹ +b ₂α² + . . . +b _(n−1)α^(n−1)=(b ₀ ,b ₁ ,b ₂ , . . . , b _(n−1))   (6)

[0021] In this case, the calculation is a little more complicated. In the dual basis multiplier, a standard representation is converted into a dual representation. In other words, D_(sd)A expressed by Formula (7) is obtained by performing basis conversion using the basis conversion matrix D_(sd).

(a ₀ ′, a ₁ ′, a ₂ ′, . . . , a _(n−1)′)=D _(sd) A   (7)

[0022] Next, a matrix M expressed by Formula (8) is obtained based on D_(sd)A. $\begin{matrix} {M = \begin{pmatrix} a_{0}^{\prime} & a_{1}^{\prime} & a_{2}^{\prime} & \cdots & a_{n - 2}^{\prime} & a_{n - 1}^{\prime} \\ a_{1}^{\prime} & a_{2}^{\prime} & a_{3}^{\prime} & \cdots & a_{n - 1}^{\prime} & a_{n}^{\prime} \\ a_{2}^{\prime} & a_{3}^{\prime} & a_{4}^{\prime} & \cdots & a_{n}^{\prime} & a_{n + 1}^{\prime} \\ \vdots & \vdots & \vdots & ⋰ & \vdots & \vdots \\ a_{n - 1}^{\prime} & a_{n}^{\prime} & a_{n + 1}^{\prime} & \cdots & a_{{2n} - 3}^{\prime} & a_{{2n} - 2}^{\prime} \end{pmatrix}} & (8) \end{matrix}$

[0023] Here, a′_(n+i)=a′_(i)+a′_(i+k(1))+a′_(i+k(2))+a′_(i+k(3))+ . . . +a′_(i+k(s)) (i≧0).

[0024] Next, a dual representation MB is obtained using a matrix calculation. The output C, i.e., the result of multiplication, must be a dual representation, so C=D_(ds)MB is obtained using the basis conversion matrix D_(ds).

[0025] Basis conversion is performed by multiplying the basis conversion matrix D_(sd) or D_(ds) by a vector (an element of a finite field). For every basis conversion in a dual basis multiplier, except for some particular one, the complexity of a basis conversion matrix is very high. In addition, for every basis conversion in a dual basis multiplier, extension to a higher-degree finite field and design is very difficult.

[0026] There are three conventional techniques relating to basis conversion, which are simply described below.

[0027] The first conventional technique relating to an efficient basis conversion matrix for a particular degree provides a matrix defined by Formula (9) in order to convert a dual representation of a particular degree “n” to a standard representation. $\begin{matrix} {D_{d\quad s} = \begin{pmatrix} 1 & 1 & 0 & 0 & \cdots & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 & \cdots & 0 & 0 & 1 \\ 0 & 1 & 0 & 0 & \cdots & 0 & 1 & 0 \\ 0 & 1 & 0 & 0 & \cdots & 1 & 0 & 0 \\ \vdots & \vdots & \vdots & \vdots & ⋰ & \vdots & \vdots & \vdots \\ 0 & 1 & 1 & 0 & \cdots & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & \cdots & 0 & 0 & 0 \end{pmatrix}_{{({n + 1})} \times {({n + 1})}}} & (9) \end{matrix}$

[0028] Here D_(ds) is a basis conversion matrix composed of 2n number of 1s. Since the size of the matrix D_(ds) is n+1, the size of all matrices C, M, and B in an arithmetic operation C=MD_(ds)B must be adjusted to n+1. The matrix C has a form (c₀, c₁, c₂, . . . , c_(n−1), c), and its final output is (c₀, c₁, c₂, . . . , c_(n−1)). The matrix Bis (b₀, b₁, b₂, . . . , b_(n−1), s[B]), and the matrix M is expressed by Formula (10). $\begin{matrix} {M = \begin{pmatrix} a_{0} & a_{1} & a_{2} & \cdots & a_{n - 2} & a_{n - 1} & {s\lbrack A\rbrack} \\ a_{1} & a_{2} & a_{3} & \cdots & a_{n - 1} & {s\lbrack A\rbrack} & a_{0} \\ a_{2} & a_{3} & a_{4} & \cdots & {s\lbrack A\rbrack} & a_{0} & a_{1} \\ \vdots & \vdots & \vdots & ⋰ & \vdots & \vdots & \vdots \\ a_{n - 1} & {s\lbrack A\rbrack} & a_{0} & \cdots & a_{n - 4} & a_{n - 3} & a_{n - 2} \\ {s\lbrack A\rbrack} & a_{0} & a_{1} & \cdots & a_{n - 3} & a_{n - 2} & a_{n - 1} \end{pmatrix}} & (10) \end{matrix}$

[0029] Here, s[A]=a₀+a₁+a₂+ . . . +a_(n−1). s[B]=b₀+b₁+b₂+ . . . +b_(n−1).

[0030] In the first conventional technique, the particular degrees “n” are used as shown in Formula (11).

n=4,10,12,18,28,36,52,58,60,66,82,100,106,130,138, 148,162,172,178,180,196,210,226,268,292, . . .   (11)

[0031] A defining polynomial of the particular “n” degree is expressed by Formula (12). $\begin{matrix} {{\sum\limits_{i = 0}^{n}\quad x^{i}} = {x^{n} + x^{n - 1} + x^{n - 2} + \ldots + x + 1}} & (12) \end{matrix}$

[0032] By providing a matrix M′ expressed by Formula (13) in C=MD_(ds)B=BM′, the first conventional technique provides an efficient dual basis multiplier, which removes basis conversion. $\begin{matrix} {M^{\prime} = \begin{pmatrix} a_{0} & a_{1} & a_{2} & \cdots & a_{n - 1} & {s\lbrack A\rbrack} \\ {s\lbrack A\rbrack} & a_{0} & a_{1} & \cdots & a_{n - 2} & a_{n - 1} \\ a_{n - 1} & {s\lbrack A\rbrack} & a_{0} & \cdots & a_{n - 3} & a_{n - 2} \\ \vdots & \vdots & \vdots & ⋰ & \vdots & \vdots \\ a_{2} & a_{3} & a_{4} & \cdots & a_{0} & a_{1} \\ a_{1} & a_{2} & a_{3} & \quad & {s\lbrack A\rbrack} & a_{0} \end{pmatrix}} & (13) \end{matrix}$

[0033] However, as shown in Formula (11), the first conventional technique is restricted to the particular degrees and uses a defining polynomial having a particular form expressed by Formula (12) rather than a general form. Conversely, the present invention provides a method which is not restricted to particular degrees and is applied to a defining polynomial, i.e., a pentanomial, having a general form.

[0034] The second conventional technique relating to an efficient basis conversion matrix for a particular defining polynomial provides a basis conversion matrix, which is simple and easily expandable in a finite field GF(2^(n)) using a defining polynomial having a particular form. The second conventional technique provides a basis conversion matrix for a case where a defining polynomial is a trinomial expressed by Formula (14) and a basis conversion matrix for a case where a defining polynomial is a pentanomial expressed by Formula (15).

x^(n)+x^(k)+1   (14)

x^(n)+x^(k+2)+x^(k+1)+x^(k)+1   (15)

[0035] When the defining polynomial is a trinomial having a particular form expressed by Formula (14), basis conversion matrices D_(ds) and D_(sd) are express by Formula (16). $\begin{matrix} {D_{d\quad s} = {D_{s\quad d} = \begin{pmatrix} \begin{pmatrix} 0 & \cdots & 1 \\ \vdots & ⋰ & \vdots \\ 1 & \cdots & 0 \end{pmatrix}_{k \times k} & 0 \\ 0 & \begin{pmatrix} 0 & 0 & \cdots & 0 & 1 \\ 0 & 0 & \cdots & 1 & 0 \\ \vdots & \vdots & ⋰ & \vdots & \vdots \\ 0 & 1 & \cdots & 0 & 0 \\ 1 & 0 & \cdots & 0 & 0 \end{pmatrix}_{{({n - k})} \times {({n - k})}} \end{pmatrix}}} & (16) \end{matrix}$

[0036] That is, each of the basis conversion matrices D_(ds) and D_(sd) is an n×n matrix and composed of “n” number of 1s.

[0037] When the defining polynomial is a pentanomial having a particular form expressed by Formula (15), the basis conversion matrices D_(ds) and D_(sd) are respectively expressed by Formulae (17) and (18). $\begin{matrix} {D_{s\quad d} = \begin{pmatrix} \begin{pmatrix} 1 & \cdots & 0 & 1 \\ 0 & \cdots & 1 & 0 \\ \vdots & ⋰ & \vdots & \vdots \\ 1 & \cdots & 0 & 0 \end{pmatrix}_{{({k + 1})} \times {({k + 1})}} & 0 \\ 0 & \begin{pmatrix} 0 & 0 & 0 & \cdots & 0 & 0 & 1 \\ 0 & 0 & 0 & \cdots & 0 & 1 & 0 \\ 0 & 0 & 0 & \cdots & 1 & 0 & 0 \\ \vdots & \vdots & \vdots & ⋰ & \vdots & \vdots & \vdots \\ 0 & 0 & 1 & \cdots & 0 & 0 & 0 \\ 0 & 1 & 0 & \cdots & 0 & 0 & 0 \\ 1 & 0 & 0 & \cdots & 0 & 0 & 1 \end{pmatrix}_{{({n - k - 1})} \times {({n - k - 1})}} \end{pmatrix}} & (17) \\ {D_{d\quad s} = \begin{pmatrix} \begin{pmatrix} 0 & \cdots & 0 & 1 \\ 0 & \cdots & 1 & 0 \\ \vdots & ⋰ & \vdots & \vdots \\ 1 & \cdots & 0 & 1 \end{pmatrix}_{{({k + 1})} \times {({k + 1})}} & 0 \\ 0 & \begin{pmatrix} 1 & 0 & 0 & \cdots & 0 & 0 & 1 \\ 0 & 0 & 0 & \cdots & 0 & 1 & 0 \\ 0 & 0 & 0 & \cdots & 1 & 0 & 0 \\ \vdots & \vdots & \vdots & ⋰ & \vdots & \vdots & \vdots \\ 0 & 0 & 1 & \cdots & 0 & 0 & 0 \\ 0 & 1 & 0 & \cdots & 0 & 0 & 0 \\ 1 & 0 & 0 & \cdots & 0 & 0 & 0 \end{pmatrix}_{{({n - k - 1})} \times {({n - k - 1})}} \end{pmatrix}} & (18) \end{matrix}$

[0038] That is, each of the basis conversion matrices D_(ds) and D_(sd) is an n×n matrix and composed of n+2 number of 1s.

[0039] Since a trinomial or pentanomial is usually used as a defining polynomial in finite fields used in practical applications, the basis conversion matrices provided by the second conventional technique are very useful. However, these basis conversion matrices can be used for the trinomial and the pentanomial respectively having a particular form expressed by Formulae (14) and (15), but cannot be used for a pentanomial having a general form. However, the present invention provides a basis conversion matrix and method for a polynomial having a general form.

[0040] The third conventional technique relating to a method of calculating a basis conversion matrix provides a method of calculating a basis conversion matrix in an arbitrary finite field GF(2^(n)). Here, {1, α, α², . . . , α^(n−1)} is a standard basis of GF(2^(n)), and a defining polynomial is expressed by Formula (19).

f(x)=x ^(n) +x ^(k)(s)+x ^(k(s−1)) + . . . +x ^(k(1))+1   (19)

[0041] After obtaining β, as shown in Formula (20), a basis conversion matrix D_(ds) for converting a dual representation to a standard representation is obtained using Formula (21).

β=(f′(α)αhu n ^(_(t)) )⁻¹ , t=[s/2]  (20) $\begin{matrix} {D_{d\quad s} = \begin{pmatrix} {T\quad {r\left( {\beta \cdot \alpha^{0}} \right)}} & {T\quad {r\left( {\beta \cdot \alpha^{1}} \right)}} & \cdots & {T\quad {r\left( {\beta \cdot \alpha^{n - 1}} \right)}} \\ {T\quad {r\left( {\beta \cdot \alpha^{1}} \right)}} & {T\quad {r\left( {\beta \cdot \alpha^{2}} \right)}} & \cdots & {T\quad {r\left( {\beta \cdot \alpha^{n}} \right)}} \\ \vdots & \vdots & ⋰ & \vdots \\ {T\quad {r\left( {\beta \cdot \alpha^{n - 1}} \right)}} & {T\quad {r\left( {\beta \cdot \alpha^{n}} \right)}} & \cdots & {T\quad {r\left( {\beta \cdot \alpha^{{2n} - 2}} \right)}} \end{pmatrix}} & (21) \end{matrix}$

[0042] However, since β is generated using a nonlinear method to k(i), the basis conversion matrix D_(ds) cannot be easily represented with respect to k(i). In addition, the basis conversion matrix D_(ds) is made without considering the complexity of its inverse matrix D_(sd), so the inverse matrix D_(sd) may be very complex in some cases. However, the present invention provides a basis conversion matrix D_(sd) selected using a linear method to k(i) and basis conversion matrices D_(ds) and D_(sd), which are easily defined by k(i), when the defining polynomial is a pentanomial.

SUMMARY OF THE INVENTION

[0043] The present invention provides a basis conversion matrix and method, which are applied to a pentanomial having a general form in an arbitrary degree as a defining polynomial.

[0044] The present invention also provides an apparatus for basis conversion by which the basis conversion method is performed.

[0045] According to a feature of an embodiment of the present invention, there is provided a method of converting a standard representation to a dual representation in a finite field GF(2^(n)), in which a standard basis represented coefficient vector B=(b₀, b₁, b₂, . . . , b_(n−1)) of an element B of the finite field GF(2^(n)) is converted to a dual basis represented coefficient vector B′=(b′₀, b′₁, b′₂, . . . , b′_(n−1)) using a defining polynomial x^(n)+x^(k(3))+x^(k(2))+x^(k(1))+1. The method is performed by an apparatus for basis conversion. The apparatus includes a token register composed of “n” bits to store each row vector in a basis conversion matrix, a data register composed of “n” bits to store a vector to be converted, “n” number of bit multipliers performing bit-by-bit multiplications between the outputs of the token register and the outputs of the data registers, and an adder connected to the output terminals of the bit multipliers to add the results of the bit-by-bit multiplications. The method includes inputting the exponents n, k(3), k(2), and k(1) of the defining polynomial x^(n)+x^(k(3))+x^(k(2))+x^(k(1))+1; storing the standard basis represented coefficient vector B=(b₀, b₁, b₂, . . . , b_(n−1)) to be converted in the data register; obtaining 0-th through k(1)-th components of the dual basis represented coefficient vector B′ using a vector formula (b′₀, b′₁, b′₂, . . . , b′_(k(1)))=(b₀+b_(k(1)), b_(k(1)−1), b_(k(1)−2), . . . , b₀); obtaining (k(1)+1)-th through (k(1)+n−k(3))-th components of the dual basis represented coefficient vector B′ using a vector formula (b′_(k(1)+1), b′_(k(1)+2), . . . , b′_(k(1)+n−k(3)))=(b_(n−1), b_(n−2), . . . , b_(k(3))); obtaining (k(1)+1+n−k(3))-th through (k(1)+n−k(2))-th components of the dual basis represented coefficient vector B′ using a vector formula (b′_(k(1)+1+n−k(3)), b′_(k(1)+2+n−k(3)), . . . , b′_(k(1)+n−k(2)))=(b_(k(3)−1)+b_(k(3)−2)+b_(n−2), . . . , b_(k(2))+b_(n−k(3)+k(2))); and obtaining (k(1)+1+n−k(2))-th through (n−1)-th components of the dual basis represented coefficient vector B′ using a vector formula (b′_(k(1)+1+n−k(2)), b′_(k(1)+2+n−k(2)), . . . , b′_(n−1))=(b_(k(2)−1)+b_(n−1−k(3)+k(2))+b_(n−1), b_(k(2)−2)+b_(n−2−k(3)+k(2))+b_(n−2), . . . , b_(k(1)+1)+b_(n+1−k(3)+k(1))+b_(n+1−k(2)+k(1))).

[0046] According to another feature of an embodiment of the present invention, there is provided a method of converting a dual representation to a standard representation in a finite field GF(2^(n)), in which a dual basis represented coefficient vector B′=(b′₀, b′₁, b′₂, . . . , b′_(n−1)) of an element B of the finite field GF(2^(n)) is converted to a standard basis represented coefficient vector B=(b₀, b₁, b₂, . . . , b_(n−1)) using a defining polynomial x^(n)+x^(k(3))+x^(k(2))+x^(k(1))+1. The method is performed by an apparatus for basis conversion. The apparatus includes a token register composed of “n” bits to store each row vector in a basis conversion matrix, a data register composed of “n” bits to store a vector to be converted, “n” number of bit multipliers performing bit-by-bit multiplications between the outputs of the token register and the outputs of the data registers, and an adder connected to the output terminals of the bit multipliers to add the results of the bit-by-bit multiplications. The method includes inputting the exponents n, k(3), k(2), and k(1) of the defining polynomial; storing the dual basis represented coefficient vector B′=(b′₀, b′₁, b′₂, . . . , b′_(n−1)) to be converted in the data register; obtaining 0-th through k(1)-th components of the standard basis represented coefficient vector B using a vector formula (b₀, b₁, . . . , b_(k(1)−1), b_(k(1)))=(b′_(k(1)), b′_(k(1)−1), . . . , b′₁, b′₀+b′_(k(1))); obtaining (k(1)+1)-th through (k(2)−1)-th components of the standard basis represented coefficient vector B using a vector formula (b_(k(1)+1), b_(k(1)+2), . . . , b_(k(2)−1))=(b′_(k(2)−1)+b′_(k(3)−1)+b′_(n−1), b′_(k(2)−2)+b′_(k(3)−2)+b′_(n−2), . . . , b′_(k(1)+1)+b′_(k(1)+1+k(3)−k(2))); obtaining k(2)-th through (k(3)−1)-th components of the standard basis represented coefficient vector B using a vector formula (b_(k(2)), b_(k(2)+1), . . . , b_(k(3)−1))=(b′_(k(1)+k(3)−k(2))+b′_(n+k(1)−k(2)), b′_(k(1)+k(3)−k(2)−1)+b′_(n+k(1)−k(2)−1), . . . , b′_(k(1)+1)+b′_(n+1+k(1)−k(3))); and obtaining k(3)-th through (n−1)-th components of the standard basis represented coefficient vector B using a vector formula (b_(k(3)), b_(k(3)+1), . . . , b_(n−1))=(b′_(n+k(1)−k(3)), b′_(n+k(1)−k(3)−1), . . . , b′_(k(1)+1)).

[0047] According to still another feature of an embodiment of the present invention, there is provided an apparatus for basis conversion between a standard basis and a dual basis in a finite field GF(2^(n)), by which conversion between a standard basis represented coefficient vector B=(b₀, b₁, b₂, . . . , b_(n−1)) of an element B of the finite field GF(2^(n)) and a dual basis represented coefficient vector B′=(b′₀, b′₁, b′₂, . . . , b′_(n−1)) is performed using a basis conversion matrix determined in accordance with a defining polynomial x^(n)+x^(k(3))+x^(k(2))+x^(k(1))+1. The apparatus includes a token register, which is composed of “n” shift registers classified into an upper token register with (k(1)+1) bits and a lower token register with (n−k(1)−1) bits, each shift register shifting input data to the left by one bit at each clock in response to an enable signal and a clock, wherein the outputs of the shift registers respectively correspond to the components of each row in the basis conversion matrix; a token controller, which receives the exponents n, k(3), k(2), and k(1) of the defining polynomial and outputs an (n−1)-bit input selection signal, the enable signal for activating the shift operation of the token register, a clock for the token register, initial values for the respective upper and lower token registers, a data input signal to a k(1)-th register of the token register, and a data input signal to an (n−1)-th register of the token register; a multiplexer, which separates the upper token register from the lower token register according to the value of k(1) in response to the input selection signal and selects a data input path for the token register; a data register, which stores a coefficient vector to be converted; an AND gate unit, which performs bit-by-bit multiplication on the output of the token register and the output of the data register; an XOR gate, which adds all of the outputs of the AND gate unit; and an output register, which is connected to the XOR gate and synchronizes the output of the XOR gate with the clock.

BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The above and other features and advantages of the present invention will become more apparent by describing in detail preferred embodiments thereof with reference to the attached drawings in which:

[0049]FIG. 1 is a flowchart of an embodiment of a basis conversion method for converting a standard representation to a dual representation according to the present invention;

[0050]FIG. 2 illustrates a diagram of an embodiment of an apparatus for basis conversion by which the basis conversion method shown in FIG. 1 is performed, according to the present invention;

[0051]FIG. 3 illustrates a diagram of an embodiment of the internal structure of a token register shown in FIG. 2;

[0052]FIG. 4 illustrates a diagram of an embodiment of the structure of an AND gate, an XOR gate, and an output register shown in FIG. 2; and

[0053]FIG. 5 is a flowchart of an embodiment of a basis conversion method for converting a dual representation to a standard representation according to the present invention.

DETAILED DESCRIPTION OF THE INVENTION

[0054] Korean Patent Application No. 2002-69460, filed on Nov. 9, 2002, and entitled, “Method And Apparatus For Basis Conversion In Finite Field,” is incorporated by reference herein in its entirety.

[0055] Hereinafter, for clarity of the description, in an n×n square matrix, 0-th through (n−1)-th rows are sequentially arranged as follows. $\begin{pmatrix} 1 & 1 & \cdots & 0 & 0 \\ 1 & 0 & \cdots & 0 & 0 \\ \vdots & \vdots & ⋰ & \vdots & \vdots \\ 0 & 0 & \cdots & 0 & 1 \\ 0 & 0 & \cdots & 1 & 0 \end{pmatrix}_{n \times n}\quad \begin{matrix} \begin{matrix} \begin{matrix} \begin{matrix} {0\text{-}{th}\quad {row}} \\ {{first}\quad {row}} \end{matrix} \\ \vdots \end{matrix} \\ {\left( {n - 2} \right)\text{-}{th}\quad {row}} \end{matrix} \\ {\left( {n - 1} \right)\text{-}{th}\quad {row}} \end{matrix}$

[0056] In order to multiply two arbitrary elements of a finite field GF(2^(n)) by each other, each element needs to be represented with respect to a certain basis. There are various representation methods, but representative methods have been described above. When α is an element of the finite field GF(2^(n)), a standard basis SB is expressed by Formula (22). DB is a duel basis with respect to a trace function f(=Tr(δ)) of the standard basis SB and is expressed by Formula (23).

SB={α ^(i) |i=0,1, . . . , n−1}  (22)

DB={β _(i) |i=0,1, . . . , n−1}  (23)

[0057] In basis conversion between coefficient vectors A=(a₀, a₁, a₂, . . . , a_(n−1)) and B=(b₀, b₁, b₂, . . . , b_(n−1)) of respective elements A and B represented with the standard basis SB of the finite field GF(2^(n)) and respective coefficient vectors A′=(a′₀, a′₁, a′₂, . . . , a′_(n)) and B′=(b′₀, b′₁, b′₂, . . . , b′_(n)) of the respective elements A and B represented with the dual basis DB of the finite field GF(2^(n)), the elements A and B are expressed by Formula (24). $\begin{matrix} \begin{matrix} {A = {{\sum\limits_{i = 0}^{n - 1}\quad {a_{i}\alpha^{i}}} = {\sum\limits_{i = 0}^{n - 1}\quad {a_{i}^{\prime}\beta_{i}}}}} \\ {B = {{\sum\limits_{i = 0}^{n - 1}\quad {b_{i}\alpha^{i}}} = {\sum\limits_{i = 0}^{n - 1}\quad {b_{i}^{\prime}\beta_{i}}}}} \end{matrix} & (24) \end{matrix}$

[0058] When the two elements A and B of the finite field are multiplied by each other based on Formula (24), an i-th coefficient of C=AB in a dual representation is expressed by Formula (25). $\begin{matrix} {\left\lbrack {A\quad B} \right\rbrack_{i} = {\left\lbrack {A{\sum\limits_{j = 0}^{n - 1}\quad {b_{j}\alpha^{j}}}} \right\rbrack_{i} = {\sum\limits_{j = 0}^{n - 1}\quad {b_{j}\left\lbrack {\alpha^{j}A} \right\rbrack}_{i}}}} & (25) \end{matrix}$

[0059] That is, the i-th coefficient of C=AB in the dual representation is expressed as the sum of products of the coefficients of the standard basis SB of the element B and the coefficients of the dual basis DB of α^(j)A. Accordingly, C=AB in the dual representation can be expressed by Formula (26). $\begin{matrix} {{\begin{pmatrix} {f(A)} & {f\left( {A\quad \alpha^{1}} \right)} & \cdots & {f\left( {A\quad \alpha^{n - 1}} \right)} \\ {f\left( {A\quad \alpha^{1}} \right)} & {f\left( {A\quad \alpha^{2}} \right)} & \cdots & {f\left( {A\quad \alpha^{n}} \right)} \\ \vdots & \vdots & ⋰ & \vdots \\ {f\left( {A\quad \alpha^{n - 1}} \right)} & {f\left( {A\quad \alpha^{n}} \right)} & \cdots & {f\left( {A\quad \alpha^{{2n} - 2}} \right)} \end{pmatrix}\begin{pmatrix} b_{0} \\ b_{1} \\ \vdots \\ b_{n - 1} \end{pmatrix}} = \begin{pmatrix} {f(C)} \\ {f\left( {C\quad \alpha} \right)} \\ \vdots \\ {f\left( {C\quad \alpha^{n - 1}} \right)} \end{pmatrix}} & (26) \end{matrix}$

[0060] As described above, for multiplication of the two elements A and B, the coefficients of the element B in the standard basis SB and the coefficients of the element A in the dual basis DB are necessary, and the result of the multiplication is a coefficient in the dual basis DB. Accordingly, regardless of whether input and output values are represented in the standard basis SB or the dual basis DB, basis conversion is necessary. The basis conversion is implemented by multiplication of matrices. Here, a matrix for converting a dual representation to a standard representation and a matrix for converting a standard representation to a dual representation are in inverse relation to each other. When the element A has a value of 1, a standard representation for the element B is converted to a dual representation. In other words, a dual representation B′ for the element B with respect to “f” is obtained by performing multiplication of matrices, as shown in Formula (27). $\begin{matrix} {\begin{pmatrix} b_{0}^{\prime} \\ b_{1}^{\prime} \\ \vdots \\ b_{n - 1}^{\prime} \end{pmatrix} = {\begin{pmatrix} {f\left( \alpha^{0} \right)} & {f\left( \alpha^{1} \right)} & \cdots & {f\left( \alpha^{n - 1} \right)} \\ {f\quad \left( \alpha^{1} \right)} & {f\left( \alpha^{2} \right)} & \cdots & {f\left( \alpha^{n} \right)} \\ \vdots & \vdots & ⋰ & \vdots \\ {f\left( \alpha^{n - 1} \right)} & {f\left( \alpha^{n} \right)} & \cdots & {f\left( \alpha^{{2n} - 2} \right)} \end{pmatrix}\begin{pmatrix} b_{0} \\ b_{1} \\ \vdots \\ b_{n - 1} \end{pmatrix}}} & (27) \end{matrix}$

[0061] The present invention provides an efficient basis conversion matrix based on the lemma that when the standard basis SB={α^(i)|i=0, 1, . . . , n−1} and an arbitrary vector v∈{0, 1}^(n) are given, there exists a linear functional “f” satisfying v=(f(1), f(α), . . . , f(α^(n−1))).

[0062] A basis conversion matrix is determined by the first column vector of Formula (27). Accordingly, in order to obtain a matrix having a small number of 1s, the first column vector may be appropriately selected based on the above-described lemma. In the finite field GF(2^(n)) with a defining polynomial expressed by Formula (28), the first column vector of the basis conversion matrix is set as Formula (29).

x^(n)+x^(k(s))+x^(k(s−1))+ . . . +x^(k(1))+1   (28)

f(α^(i))=0(i≠0,k(1)), f(α⁰)=1, f(α_(k(1)))=1   (29)

[0063] When the components of the vector “v” are selected according to Formula (29), a basis conversion matrix D_(sd) for converting a standard representation to a dual representation is expressed by Formula (30). $\begin{matrix} {D_{s\quad d} = \begin{pmatrix} \begin{pmatrix} \bullet & \bullet \\ \bullet & \bullet \end{pmatrix}_{{({{k{(1)}} + 1})} \times {({{k{(1)}} + 1})}} & 0 \\ 0 & \begin{pmatrix} \bullet & \bullet & \bullet \\ \bullet & \bullet & \bullet \\ \bullet & \bullet & \bullet \end{pmatrix}_{{({n - {k{(1)}} - 1})} \times {({n - {k{(1)}} - 1})}} \end{pmatrix}} & (30) \end{matrix}$

[0064] An inverse matrix D_(ds), for converting a dual representation to a standard representation, of the basis conversion matrix D_(sd) is also expressed by Formula (30).

[0065]FIG. 1 is a flowchart of an embodiment of a basis conversion method for converting a standard representation to a dual representation according to the present invention. In step S10, the exponents n, k(3), k(2), and (k1) of a defining polynomial are input. In step S12, a standard basis coefficient vector B to be subjected to basis conversion is stored in a register. In steps S14 through S20, the coefficient vector B is converted to a dual basis represented coefficient vector B′.

[0066] The present invention provides basis conversion matrices D_(sd) and D_(ds) and a basis conversion method for a case where a defining polynomial is a pentanomial defined by Formula (31) and satisfies the condition shown in Formula (32).

x⁺x^(k(3))+x^(k(2))+x^(k(1))+1   (31)

n−k(3)>k(3)−k(1)   (32)

[0067] More specifically, the exponents n, k(3), k(2), and (k1) of the defining polynomial defined by Formula (31) are input in step S10.

[0068] In most practically used finite fields GF(2^(n)), a trinomial or pentanomial is used as the defining polynomial. In addition, since the values of k(1), k(2), and k(3) are usually smaller than the value of “n”, the effect of the condition with respect to k(i) shown in Formula (32) affects the practicality of the present invention only minimally.

[0069] The basis conversion matrix D_(sd) shown in Formula (30) can be simply rewritten by Formula (33). $\begin{matrix} {D_{s\quad d} = \begin{pmatrix} \left\lbrack D_{s\quad d} \right\rbrack_{U} & 0 \\ 0 & \left\lbrack D_{s\quad d} \right\rbrack_{L} \end{pmatrix}} & (33) \end{matrix}$

[0070] When the defining polynomial of a finite field GF(2^(n)) is determined according to Formulae (31) and (32), [D_(sd)]_(U) and [D_(sd)]_(L) are defined by Formulae (34) and (35), respectively, based on Formula (29). $\begin{matrix} {\left\lbrack D_{s\quad d} \right\rbrack_{U} = \begin{pmatrix} 1 & 0 & \cdots & 0 & 1 \\ 0 & 0 & \cdots & 1 & 0 \\ \vdots & \vdots & ⋰ & \vdots & \vdots \\ 0 & 1 & \cdots & 0 & 0 \\ 1 & 0 & \cdots & 0 & 0 \end{pmatrix}_{{({{k{(1)}} + 1})} \times {({{k{(1)}} + 1})}}} & (34) \\ {\left\lbrack D_{s\quad d} \right\rbrack_{L} = \begin{pmatrix} \quad & \quad & \quad & \quad & \quad & \quad & 1 \\ \quad & \quad & \quad & \quad & \quad & 1 & \quad \\ \quad & \quad & \quad & \quad & 1 & \quad & 1 \\ \quad & \quad & \quad & \cdots & \quad & 1 & \quad \\ \quad & \quad & {\quad 1} & \quad & \cdots & \quad & 1 \\ \quad & 1 & \quad & 1 & \quad & \cdots & \quad \\ 1 & \quad & 1 & \quad & 1 & \quad & \quad \end{pmatrix}_{{({n - {k{(1)}} - 1})} \times {({n - {k{(1)}} - 1})}}} & (35) \end{matrix}$

[0071] All of the elements of [D_(sd)]_(L) except for 1s shown in Formula (35) are 0s. In [D_(sd)]_(L), (n−k(1)−1) number of 1s exist on the longest anti-diagonal, and (k(3)−k(2)−1) number of 1s and (k(2)−k(1)−1) number of 1s exist on the remaining two anti-diagonals, respectively. Accordingly, the basis conversion matrix D_(sd) has a total (n+k(3)−k(1)+k(2)−k(1)−1) number of 1s including the number of 1s in the above square matrix shown in Formulae (34) and (35). In addition, the anti-diagonals of [D_(sd)]_(L) respectively start at the (k(1)+1)-th, (k(1)+1+n−k(3))-th, and (k(1)+1+n−k(2))-th rows of the basis conversion matrix D_(sd). If k(2)−k(i)=1, the shortest third anti-diagonal having (k(2)Δk(1)−1) number of 1s does not appear. As described above, the basis conversion matrix D_(sd) is easily expressed linearly with respect to k(t) and “n”. This means that a basis conversion matrix does not need to be stored.

[0072] Consequently, in step S10, by inputting the exponents n, k(3), k(2), and k(1) of the defining polynomial which is a pentanomial, the basis conversion matrix D_(sd) is determined based on the above-described theory.

[0073] In step S12, a standard basis represented coefficient vector B=(b₀, b₁, b₂, . . . , b_(n−1)) of an element B of the finite field is stored in a register.

[0074] Next, steps S14 through S20 relate to conversion of a coefficient vector for obtaining the components of a dual basis represented coefficient vector. Conversion formulae used in steps S14 through S20 are determined based on the basis conversion matrix D_(sd) determined in step S10.

[0075] The following description concerns an operation of converting a standard basis represented coefficient vector to a dual basis represented coefficient vector. Formula (36) shows a relationship between the standard basis represented coefficient vector B=(b₀, b₁, b₂, . . . , b_(n−1)) and the dual basis represented coefficient vector B′=(b′₀, b′₁, b′₂, . . . , b′_(n−1)) in the finite field GF(2^(n)).

B′=D _(sd) ·B $\begin{matrix} {\begin{pmatrix} B_{U}^{\prime} \\ B_{L}^{\prime} \end{pmatrix} = {\begin{pmatrix} \left\lbrack D_{s\quad d} \right\rbrack_{U} & 0 \\ 0 & \left\lbrack D_{s\quad d} \right\rbrack_{L} \end{pmatrix} \cdot \begin{pmatrix} B_{U} \\ B_{L} \end{pmatrix}}} & (36) \end{matrix}$

[0076] The rows of the basis conversion matrix D_(sd) can be divided into the square matrix [D_(sd)]_(U) composed of 0-th through k(1)-th rows in a size of (k(1)+1)×(k(1)+1) and the square matrix [D_(sd)]_(L) composed of (k(1)+1)-th through (n−1)-th rows in a size of (n−k(1)−1)×(n−k(1)−1).

[0077] In step S14, the 0-th through k(1)-th components [b′₀, b′₁, . . . , b′_(k(1)]) ^(T) of the dual basis represented coefficient vector B′ are obtained using Formula (37). Here, [D_(sd)]_(U) is the same as shown in Formula (34).

B′ _(U) =[D _(sd)]_(U) ·B _(U)   (37)

[0078] As the result of performing step S14, the result of Formula (37) is expressed by Formula (38). $\begin{pmatrix} b_{0}^{\prime} \\ b_{1}^{\prime} \\ \vdots \\ b_{{k{(1)}} - 1}^{\prime} \\ b_{k{(1)}}^{\prime} \end{pmatrix} = \begin{pmatrix} {b_{0} + b_{k{(1)}}} \\ b_{{k{(1)}} - 1} \\ \vdots \\ b_{1} \\ b_{0} \end{pmatrix}$

[0079] In steps S16 through S20, the (k(1)+1)-th through (n−1)-th components of the dual basis represented coefficient vector B′ are obtained using Formula (39). Here, [D_(sd)]_(L) is the same as shown in Formula (35).

B′ _(L) =[D _(sd)]_(L) ·B _(L) $\begin{matrix} {\begin{pmatrix} b_{{k{(1)}} + 1}^{\prime} \\ b_{{k{(1)}} + 2}^{\prime} \\ \vdots \\ b_{{k{(1)}} + 1 + n - {k{(3)}}}^{\prime} \\ b_{{k{(1)}} + 2 + n - {k{(3)}}}^{\prime} \\ \vdots \\ b_{{k{(1)}} + 1 + n - {k{(2)}}}^{\prime} \\ b_{{k{(1)}} + 2 + n - {k{(2)}}}^{\prime} \\ \vdots \\ b_{n - 1}^{\prime} \end{pmatrix} = {\left\lbrack D_{s\quad d} \right\rbrack_{L} \cdot \begin{pmatrix} b_{{k{(1)}} + 1} \\ b_{{k{(1)}} + 2} \\ \vdots \\ b_{{k{(1)}} + 1 + n - {k{(3)}}} \\ b_{{k{(1)}} + 2 + n - {k{(3)}}} \\ \vdots \\ b_{{k{(1)}} + 1 + n - {k{(2)}}} \\ b_{{k{(1)}} + 2 + n - {k{(2)}}} \\ \vdots \\ b_{n - 1} \end{pmatrix}}} & (39) \end{matrix}$

[0080] As shown in Formula (35), the rows in [D_(sd)]_(L) can be classified into rows having a single 1, rows having two is, and rows having three 1s. Accordingly, steps for implementing the right side of conversion Formula (39) may be classified into step S16 having a single term, step S18 having two terms, and step S20 having three terms. In other words, the 0-th through k(1)-th components of the dual basis represented coefficient vector B′ are obtained in step S14, the (k(1)+1)-th through (k(1)+n−k(3))-th components of the dual basis represented coefficient vector B′ are obtained in step S16, the (k(1)+1+n−k(3))-th through (k(1)+n−k(2))-th components of the dual basis represented coefficient vector B′ are obtained in step S18, and the (k(1)+1+n−k(2))-th through (n−1)-th components of the dual basis represented coefficient vector B′ are obtained in step S20. Consequently, the basis conversion result obtained by performing steps S14 through S20 is expressed by Formula (40). $\begin{matrix} {\begin{pmatrix} b_{{k{(1)}} + 1}^{\prime} \\ b_{{k{(1)}} + 2}^{\prime} \\ \vdots \\ b_{{k{(1)}} + 1 + n - {k{(3)}}}^{\prime} \\ b_{{k{(1)}} + 2 + n - {k{(3)}}}^{\prime} \\ \vdots \\ b_{{k{(1)}} + 1 + n - {k{(2)}}}^{\prime} \\ b_{{k{(1)}} + 2 + n - {k{(2)}}}^{\prime} \\ \vdots \\ b_{n - 1}^{\prime} \end{pmatrix} = \begin{pmatrix} b_{n - 1} \\ b_{n - 2} \\ \vdots \\ {b_{{k{(3)}} - 1} + b_{n - 1}} \\ {b_{{k{(3)}} - 2} + b_{n - 2}} \\ \vdots \\ {b_{{k{(2)}} - 1} + b_{n - 1 - {k{(3)}} + {k{(2)}}} + b_{n - 1}} \\ {b_{{k{(2)}} - 2} + b_{n - 2 - {k{(3)}} + {k{(2)}}} + b_{n - 2}} \\ \vdots \\ {b_{{k{(1)}} + 1} + b_{n + 1 - {k{(3)}} + {k{(1)}}} + b_{n + 1 - {k{(2)}} + {k{(1)}}}} \end{pmatrix}} & (40) \end{matrix}$

[0081] The following description concerns how a basis conversion method of the present invention is applied to a coefficient vector B=(b₀, b₁, . . . , b₁₂) of an element B of a finite field GF(2¹³) with a defining polynomial expressed by Formula (41).

x¹³+x⁶+x⁴+x+1   (41)

[0082] Here, a basis conversion matrix D_(sd) for converting a standard representation to a dual representation is a 13×13 square matrix expressed by Formula (42).

B′=D _(sd) ·B $\begin{matrix} {\begin{pmatrix} B_{U}^{\prime} \\ B_{L}^{\prime} \end{pmatrix} = {\begin{pmatrix} \left\lbrack D_{sd} \right\rbrack_{U} & 0 \\ 0 & \left\lbrack D_{sd} \right\rbrack_{L} \end{pmatrix} \cdot \begin{pmatrix} B_{U} \\ B_{L} \end{pmatrix}}} & (42) \end{matrix}$

[0083] The 2×2 matrix [D_(sd)]_(U) and the 11×11 matrix [D_(sd)]_(L) are separately subjected to matrix calculation as shown in Formulae (43) and (44). In Formula (44), all of the elements not shown in the matrix [D_(sd)]_(L) are 0.

B′ _(U) =[D _(sd)]_(U) ·B _(U) $\begin{matrix} {\begin{pmatrix} b_{0}^{\prime} \\ b_{1}^{\prime} \end{pmatrix} = {{\begin{pmatrix} 1 & 1 \\ 0 & 0 \end{pmatrix} \cdot \begin{pmatrix} b_{0} \\ b_{1} \end{pmatrix}} = \begin{pmatrix} {b_{0} + b_{1}} \\ b_{0} \end{pmatrix}}} & (43) \end{matrix}$

 B′ _(L) =[D _(sd)]_(L) ·B _(L) $\begin{matrix} \begin{matrix} {\left\lbrack D_{sd} \right\rbrack_{L} = \begin{pmatrix} \quad & \quad & \quad & \quad & \quad & \quad & 1 \\ \quad & \quad & \quad & \quad & \quad & 1 & \quad \\ \quad & \quad & \quad & \quad & 1 & \quad & \quad \\ \quad & \quad & \quad & \cdots & \quad & \quad & 1 \\ \quad & \quad & 1 & \quad & \quad & 1 & 0 \\ \quad & 1 & \quad & \quad & 1 & 0 & 1 \\ 1 & \quad & \quad & 1 & 0 & 1 & 0 \end{pmatrix}} \\ {\begin{pmatrix} b_{2}^{\prime} \\ b_{3}^{\prime} \\ b_{4}^{\prime} \\ b_{5}^{\prime} \\ b_{6}^{\prime} \\ b_{7}^{\prime} \\ b_{8}^{\prime} \\ b_{9}^{\prime} \\ b_{10}^{\prime} \\ b_{11}^{\prime} \\ b_{12}^{\prime} \end{pmatrix} = \begin{pmatrix} b_{12} \\ b_{11} \\ b_{10} \\ b_{9} \\ b_{8} \\ b_{7} \\ b_{6} \\ {b_{5} + b_{12}} \\ {b_{4} + b_{11}} \\ {b_{3} + b_{10} + b_{12}} \\ {b_{2} + b_{9} + b_{11}} \end{pmatrix}} \end{matrix} & (44) \end{matrix}$

[0084]FIG. 2 illustrates a diagram of an embodiment of an apparatus for basis conversion, by which the basis conversion method shown in FIG. 1 is performed, according to the present invention. The apparatus for basis conversion includes a token register 20, which is composed of “n” bits and outputs components of each row of a basis conversion matrix; a token controller 10, which outputs to the token register 20 control signals SEL<0:n−2>, EN_(u), and EN_(l) for controlling the token register 20, data D<0:n−1> and a shift clock CK. The control signal SEL<0:n−2> is used for input selection. The apparatus for basis conversion further includes a data register 30, which is composed of “n” bits and stores the components of a vector to be converted; an AND gate unit 40, which is composed of “n” number of AND gates in order to multiply the n-bit output of the token register 20 by the n-bit output of the data register 30 bit-by-bit; an XOR gate 50, which is connected to the AND gate unit 40 and performs a bit addition on the “n” outputs of the AND gate unit 40; and an output register 60, which is selectively provided and outputs the result of the basis conversion in synchronization with a clock signal.

[0085] The AND gate unit 40, the XOR gate 50, and the output register 60 are illustrated in detail in FIG. 4.

[0086]FIG. 3 is a diagram of an embodiment of the internal structure of the token register 20 shown in FIG. 2. The token register 20 includes an upper token register 20 a composed of (k(1)+1) bits, a lower token register 20 b composed of (n−k(1)−1) bits, and n−1 multiplexers 21, which divide the token register 20 into the upper token register 20 a and the lower token register 20 b and select data input paths for the token register 20.

[0087] Referring to FIGS. 2 and 3, the token register 20 is composed of “n” shift registers, which are classified into the upper token register 20 a and the lower token register 20 b. In the token register 20, in response to the enable signals EN_(u), and EN_(l) and the shift clock CK from the token controller 10, data is shifted to the left by one bit at each shift clock CK and then output. The outputs T<0:n−1> of the “n” shift registers at each shift clock CK are the values of the components of each row in the basis conversion matrix D_(sd) or D_(ds).

[0088] The multiplexers 21, of which there are (n−1), divide the token register 20 into the upper token register 20 a and the lower token register 20 b according to the value of k(1) in response to SEL<0:n−2>.

[0089] The token controller 10 receives the exponents n, k(3), k(2), and k(1) of a pentanomial as a defining polynomial and outputs SEL<0:n−2> for the (n−1) multiplexers 21, the enable signals EN_(u), and EN_(l) for activating the shift operation of the token register 20, the shift clock CK for the token register 20, and the data D<0:n−1> stored in the upper token register 20 a and the lower token register 20 b at each shift clock CK.

[0090] The data register 30 stores a coefficient vector B=(b₀, b₁, b₂, . . . , b_(n−1)) of an element to be converted.

[0091] Multiplication between a basis conversion matrix and a coefficient vector is implemented by the AND gate unit 40 and the XOR gate 50. The AND gate unit 40 performs a bit multiplication of T<0:n−1> and D<0:n−1>. The XOR gate 50 adds the results of the bit multiplication performed by the AND gate unit 40.

[0092] The output register 60 is selectively provided for output synchronization. For example, when the components of each row are determined at 0-th through twelfth clocks, the output register 60 receives the components and outputs vector components at first through thirteenth clocks.

[0093] The following description concerns the conversion from a basis representation to a dual representation performed by an apparatus for basis conversion having the above-described structure according to the present invention.

[0094] According to an input value of a bit k(1), the 0-th through k(1)-th registers are classified into the upper token register 20 a and the (k(1)+1)-th through (n−1)-th registers are classified into the lower token register 20 b. Accordingly, the upper and lower token registers 20 a and 20 b are separately controlled. Here, the bit k(1) is the most significant bit (MSB) of the upper token register 20 a. In other words, SEL<k(1)> of the k(1)-th multiplexer 21 is controlled such that an input value of the k(1)-th register is determined through an external path during the basis conversion. In addition, the (n−1)-th register corresponding to the MSB of the lower token register 20 b is not connected to any one of the multiplexers 21 but always receives external data. When n=13 and k(1)=1,the upper token register 20 a is composed of two shift registers, the lower token register 20 b is composed of 11 shift registers, and 12 multiplexers 21 are provided except for the MSB of the lower token register 20 b.

[0095] At the 0-th clock, a value 1 is input to SEL<0:k(1)> so that an initial value for the upper token register 20 a is externally input. At the first through k(1)-th clocks, a value 1 is input to only SEL<k(1)> of the k(1)-th multiplexer, so the k(1)-th register continuously receives externally input values, and a value 0 is input to SEL<0:k(1)−1>, so each of the 0-th through (k(1)−1)-th registers shifts one bit output from the next register. For example, when k(1)=1, values (1 1) are input to SEL<0:1> at the 0-th clock, and values (0 1) are input to SEL<0:1> at the first clock. After the (k(1)+1)-th clock, the outputs of the upper token register 20 a are maintained by an enable control, so SEL<0:k(1)> for the upper token register 20 a is “don't care” from the (k(1)+2) clock.

[0096] The values of SEL<k(1)+1 :n−2> provided for all of the bits of the lower token register 20 b except for the (n−1)-th bit are, for example, 1 at the (k(1)+1)-th clock so that the lower token register 20 b is connected to external inputs D<k(1)+1 :n−1> at the (k(1)+1)-th clock. Starting from the (k(1)+2)-th clock, 0 is input to all of SEL<k(1)+1 :n−2> so that each of the registers in the lower token register 20 b shifts a value output from the next register.

[0097] The outputs of the upper token register 20 a and the lower token register 20 b are controlled by the enable signals EN_(u), and EN_(l). The enable signals EN_(u), and EN_(l) are controlled to enable the token register 20 while desired values are output in response to the clock CK. The following description concerns an example of an enable control of the token register 20.

[0098] In an enable control for the upper token register 20 a, the upper token register 20 a is enabled at the 0-th clock in response to the enable signal EN_(u), is maintained in an enabled state up to the (k(1)+1)-th clock, and disabled after the shift output of the upper token register 20 at the (k(1)+1)-th clock. For example, when k(1)=1, the upper token register 20 a is enabled at the 0-th clock and outputs (1 1) in response to external inputs. At the first clock, the upper token register 20 a outputs a shifted output 1 as the 0-th bit and outputs 0 as the k(1)-th bit, i.e., the first bit in response to an external input. Consequently, the upper token register 20 outputs (1 0). At the second clock, a shifted output 0 is output as the 0-th bit, and 0 is output as the first bit in response to an external input so that the upper token register 20 a outputs (0 0). Starting from the third clock, the upper token register 20 a is disabled, and thus the outputs (0 0) are maintained. The components of [D_(sd)]_(U) respectively correspond to bits output from the upper token register 20 a.

[0099] In an enable control for the lower token register 20 b, all of the outputs of the lower token register 20 b are 0 at the 0-th through k(1)-th clocks. The lower token register 20 b may be designed to be enabled at the (k(1)+1)-th clock. When all of the registers in the apparatus commence operation, for example, all of the outputs of the lower token register 20 b are 0 due to a global reset. At the (k(1)+1)-th clock, the lower token register 20 b is enabled and starts shift operation. For example, when the defining polynomial is a pentanomial x¹³+x⁶+x⁴+x +1, n=13, k(3)=6, k(2)=4, and k(1)=1, the lower token register 20 b outputs 0 at the 0-th and first clocks and is enabled at the second clock so as to output (0 0 . . . 0 1) in response to external inputs. The enabled state is maintained until the basis conversion is completed at the twelfth clock. At the third clock, the lower token register 20 b outputs (0 0 . . . 1 0) by performing a 1-bit shift to the left. The 1-bit shift to the left is performed at each clock. A value 1 is input to the (n−1)-th register in the lower token register 20 b at the (k(1)+1+n−k(3)=9)-th clock and the (k(1)+1+n−k(2)=11)-th clock, and a value 0 is input thereto at the other clocks. Then, as the shift clock increases, the upper token register 20 a and the lower token register 20 b have the values shown below. Here, the two bits in parenthesis are the outputs of the upper token register 20 a and the following 11 bits are the outputs of the lower token register 20 b for the 0-th through 12-th clocks.  0-th clock (1 1) (0 0 0 0 0 0 0 0 0 0 0)   1st clock (1 0) (0 0 0 0 0 0 0 0 0 0 0)   2nd clock (0 0) (0 0 0 0 0 0 0 0 0 0 1)   3rd clock (0 0) (0 0 0 0 0 0 0 0 0 1 0)   4th clock (0 0) (0 0 0 0 0 0 0 0 1 0 0)   5th clock (0 0) (0 0 0 0 0 0 0 1 0 0 0)   6th clock (0 0) (0 0 0 0 0 0 1 0 0 0 0)   7th clock (0 0) (0 0 0 0 0 1 0 0 0 0 0)   8th clock (0 0) (0 0 0 0 1 0 0 0 0 0 0)   9th clock (0 0) (0 0 0 1 0 0 0 0 0 0 1)  10th clock (0 0) (0 0 1 0 0 0 0 0 0 1 0)  11th clock (0 0) (0 1 0 0 0 0 0 0 1 0 1)  12th clock (0 0) (1 0 0 0 0 0 0 1 0 1 0)

[0100] In the meantime, basis conversion matrix calculation is implemented by a bit-by-bit multiplication between the outputs of the token register 20 and the outputs of the data register 40 and an addition of all bits resulting from the bit-by-bit multiplication. The components T<0:n−1> of each row in the basis conversion matrix D_(sd), which are output from the token register 20 in response to the shift clocks, are respectively multiplied by the values b<0:n−1> output from the data register 30 by the “n” AND gates included in the AND gate unit 40. The outputs of the AND gate unit 40 are added by the XOR gate 50. The output of the XOR gate 50 is synchronized with the clock CK by the output register 60.

[0101]FIG. 5 is a flowchart of an embodiment of a basis conversion method for converting a dual representation to a standard representation according to the present invention. In step S30, the exponents n, k(3), k(2), and (k1) of a defining polynomial are input. In step S32, a dual basis represented coefficient vector B′ to be subjected to basis conversion is stored in a register. In steps S34 through S40, the coefficient vector B′ is converted to a standard basis represented coefficient vector B. The basis conversion shown in FIG. 5 is similar to that shown in FIG. 1, but a different basis conversion matrix is used.

[0102] The basis conversion matrix D_(ds) for converting a dual representation to a standard representation is an inverse matrix of the basis conversion matrix D_(sd) and is expressed by Formulae (45) through (47). $\begin{matrix} {D_{ds} = \begin{pmatrix} \left\lbrack D_{ds} \right\rbrack_{U} & 0 \\ 0 & \left\lbrack D_{ds} \right\rbrack_{L} \end{pmatrix}} & (45) \\ {\left\lbrack D_{ds} \right\rbrack_{U} = \begin{pmatrix} 0 & 0 & \cdots & 0 & 1 \\ 0 & 0 & \cdots & 1 & 0 \\ \vdots & \vdots & ⋰ & \vdots & \vdots \\ 0 & 1 & \cdots & 0 & 0 \\ 1 & 0 & \cdots & 0 & 1 \end{pmatrix}_{{({{k{(1)}} + 1})} \times {({{k{(1)}} + 1})}}} & (46) \\ {\left\lbrack D_{ds} \right\rbrack_{L} = \begin{pmatrix} \quad & \quad & 1 & \quad & 1 & \quad & 1 \\ \quad & \cdots & \quad & 1 & \quad & 1 & \quad \\ 1 & \quad & \cdots & \quad & 1 & \quad & \quad \\ \quad & 1 & \quad & \cdots & \quad & \quad & \quad \\ 1 & \quad & 1 & \quad & \quad & \quad & \quad \\ \quad & 1 & \quad & \quad & \quad & \quad & \quad \\ 1 & \quad & \quad & \quad & \quad & \quad & \quad \end{pmatrix}_{{({n - {k{(1)}} - 1})} \times {({n - {k{(1)}} - 1})}}} & (47) \end{matrix}$

[0103] In the square matrix [D_(ds)]_(L) shown in Formula 47, the number of 1s in each anti-diagonal and an interval between adjacent anti-diagonals is the same as described in the case of the basis conversion matrix D_(sd). At the (k(1)+1)-th row in the basis conversion matrix D_(ds), the anti-diagonals respectively start at the (k(2)−1)-th, (k(3)−1)-th, and (n−1)-th columns. If k(2)−k(1)=1, the shortest anti-diagonal does not appear.

[0104] Similarly to the basis conversion from a standard representation to a dual representation, the basis conversion from a dual representation to a standard representation is performed by sequential calculations shown in Formulae (48) through (52).

B=D _(ds) ·B′ $\begin{matrix} {\begin{pmatrix} B_{U} \\ B_{L} \end{pmatrix} = {\begin{pmatrix} \left\lbrack D_{ds} \right\rbrack_{U} & 0 \\ 0 & \left\lbrack D_{ds} \right\rbrack_{L} \end{pmatrix} \cdot \begin{pmatrix} B_{U}^{\prime} \\ B_{L}^{\prime} \end{pmatrix}}} & (48) \end{matrix}$

 B _(U) =[D _(ds)]_(U) B′ _(U)   (49)

[0105] When Formula (46) is applied to Formula (49), Formula (50) is obtained. $\begin{matrix} {\begin{pmatrix} b_{0} \\ b_{1} \\ \vdots \\ b_{{k{(1)}} - 1} \\ b_{k{(1)}} \end{pmatrix} = \begin{pmatrix} b_{k{(1)}}^{\prime} \\ b_{{k{(1)}} - 1}^{\prime} \\ \vdots \\ b_{1}^{\prime} \\ {b_{0}^{\prime} + b_{k{(1)}}^{\prime}} \end{pmatrix}} & (50) \end{matrix}$

[0106] In steps S36 through S40, the (k(1)+1)-th through (n−1)-th components of the standard basis represented coefficient vector B are obtained using Formula (51). Here, [D_(ds)]_(L) is the same as shown in Formula (47).

B _(L)=[D_(ds)]_(L) ·B′ _(L)   (51)

[0107] As shown in Formula (47), the rows in [D_(ds)]_(L) may be classified into rows having three 1s, rows having two 1s, and rows having a single 1. Accordingly, steps for implementing the right side of conversion Formula (50) may be classified into step S36 having three terms, step S38 having two terms, and step S40 having a single term. In other words, the 0-th through k(1)-th components of the standard basis represented coefficient vector B are obtained in step S34, the (k(1)+1)-th through (k(1)+n−k(3))-th components of the standard basis represented coefficient vector B are obtained in step S36, the (k(1)+1+n−k(3))-th through (k(1)+n−k(2))-th components of the standard basis represented coefficient vector B are obtained in step S38, and the (k(1)+1+n−k(2))-th through (n−1)-th components of the standard basis represented coefficient vector B are obtained in step S40. Consequently, the basis conversion result obtained by performing steps S34 through S40 is expressed by Formula (52). $\begin{matrix} {\begin{pmatrix} b_{{k{(1)}} + 1} \\ \vdots \\ b_{{k{(2)}} - 1} \\ b_{k{(2)}} \\ \vdots \\ b_{{k{(3)}} - 1} \\ b_{k{(3)}} \\ \vdots \\ b_{n - 1} \end{pmatrix} = \begin{pmatrix} {b_{{k{(2)}} - 1}^{\prime} + b_{{k{(3)}} - 1}^{\prime} + b_{n - 1}^{\prime}} \\ \vdots \\ {b_{{k{(1)}} + 1}^{\prime} + b_{{k{(1)}} + 1 + {k{(3)}} - {k{(2)}}}^{\prime} + b_{n + 1 + {k{(1)}} - {k{(2)}}}^{\prime}} \\ {b_{{k{(1)}} + {k{(3)}} - {k{(2)}}}^{\prime} + b_{n + {k{(1)}} - {k{(2)}}}^{\prime}} \\ \vdots \\ {b_{{k{(1)}} + 1}^{\prime} + b_{n + 1 + {k{(1)}} - {k{(3)}}}^{\prime}} \\ b_{n + {k{(1)}} - {k{(3)}}}^{\prime} \\ \vdots \\ b_{{k{(1)}} + 1}^{\prime} \end{pmatrix}} & (52) \end{matrix}$

[0108] When the defining polynomial of a finite field GF(2¹³) is expressed by Formula (53), matrices used for basis conversion are given by Formulae (54) and (55), and a conversion formula and its result are expressed by Formulae (56) and (57).

x¹³+x⁶+x⁴+x+1   (53) $\begin{matrix} {\left\lbrack D_{ds} \right\rbrack_{U} = \begin{pmatrix} 0 & 1 \\ 1 & 1 \end{pmatrix}} & (54) \\ {\left\lbrack D_{ds} \right\rbrack_{L} = \begin{pmatrix} 0 & 1 & 0 & 1 & \quad & \quad & 1 \\ 1 & 0 & 1 & \quad & \quad & 1 & \quad \\ 0 & 1 & \quad & \quad & 1 & \quad & \quad \\ 1 & \quad & \quad & \cdots & \quad & \quad & \quad \\ \quad & \quad & 1 & \quad & \quad & \quad & \quad \\ \quad & 1 & \quad & \quad & \quad & \quad & \quad \\ 1 & \quad & \quad & \quad & \quad & \quad & \quad \end{pmatrix}_{11 \times 11}} & (55) \end{matrix}$

 B _(U) =[D _(ds)]_(U) ·B′ _(U) $\begin{matrix} {\begin{pmatrix} b_{0} \\ b_{1} \end{pmatrix} = {{\begin{pmatrix} 0 & 1 \\ 1 & 1 \end{pmatrix} \cdot \begin{pmatrix} b_{0}^{\prime} \\ b_{1}^{\prime} \end{pmatrix}} = \begin{pmatrix} b_{1} \\ {b_{0} + b_{1}} \end{pmatrix}}} & (56) \end{matrix}$

 B _(L) =[D _(ds)]_(L) ·B′ _(L) $\begin{matrix} {\begin{pmatrix} b_{2} \\ b_{3} \\ b_{4} \\ b_{5} \\ b_{6} \\ b_{7} \\ b_{8} \\ b_{9} \\ b_{10} \\ b_{11} \\ b_{12} \end{pmatrix} = \begin{pmatrix} {b_{3}^{\prime} + b_{5}^{\prime} + b_{12}^{\prime}} \\ {b_{2}^{\prime} + b_{4}^{\prime} + b_{11}^{\prime}} \\ {b_{3}^{\prime} + b_{10}^{\prime}} \\ {b_{2}^{\prime} + b_{9}^{\prime}} \\ b_{8}^{\prime} \\ b_{7}^{\prime} \\ b_{6}^{\prime} \\ b_{5}^{\prime} \\ b_{4}^{\prime} \\ b_{3}^{\prime} \\ b_{2}^{\prime} \end{pmatrix}} & (57) \end{matrix}$

[0109] An apparatus for basis conversion from a dual representation to a standard representation fundamentally includes the apparatus shown in FIG. 2 and performs the same control and arithmetic operations as the apparatus shown in FIG. 2, with the exception that a data signal D<0:n−1> output from the token controller 10 and stored in the upper and lower token registers 20 a and 20 b is different from that used in the apparatus shown in FIG. 2.

[0110] When the defining polynomial is x¹³+x⁶+x⁴+x+1, in the upper token register 20 a corresponding to the components of [D_(ds)]_(U), after an initial value is set at the 0-th clock, a value 0 is input as the k(1)-th bit at each clock. The upper token register 20 a is designed to shift to the left by one bit at each clock. A value 1 is input to the k(1)-th bit in the upper token register 20 a at the k(1)-th clock. For example, when k(1)=1, the upper token register 20 a outputs (0 1) at the 0-th clock and (1 1) at the first clock.

[0111] In the lower token register 20 b corresponding to the components of [D_(ds)]_(L), after an initial value is set at the (k(1)+1)-th clock, a value 0 is input to the (n−1)-th register at each clock starting from the (k(1)+2)-th clock. The lower token register 20 b is designed to shift to the left by one bit at each clock. When n=13, k(3)=6, k(2)=4, and k(1)=1,the lower token register 20 b is composed of n−k(1)−1=11 shift registers, and the initial values of the 11 shift registers are (0 1 0 1 0 0 0 0 0 0 1). The stored initial values are shifted to the left by one bit at each clock. After the initial values are shifted, a value 0 is input to the 12th register at each clock. Then, as the shift clock increases, the upper token register 20 a and the lower token register 20 b have the following values.  0-th clock (0 1) (0 0 0 0 0 0 0 0 0 0 0)   1st clock (1 1) (0 0 0 0 0 0 0 0 0 0 0)   2nd clock (0 0) (0 1 0 1 0 0 0 0 0 0 1)   3rd clock (0 0) (1 0 1 0 0 0 0 0 0 1 0)   4th clock (0 0) (0 1 0 0 0 0 0 0 1 0 0)   5th clock (0 0) (1 0 0 0 0 0 0 1 0 0 0)   6th clock (0 0) (0 0 0 0 0 0 1 0 0 0 0)   7th clock (0 0) (0 0 0 0 0 1 0 0 0 0 0)   8th clock (0 0) (0 0 0 0 1 0 0 0 0 0 0)   9th clock (0 0) (0 0 0 1 0 0 0 0 0 0 0)  10th clock (0 0) (0 0 1 0 0 0 0 0 0 0 0)  11th clock (0 0) (0 1 0 0 0 0 0 0 0 0 0)  12th clock (0 0) (1 0 0 0 0 0 0 0 0 0 0)

[0112] In the meantime, basis conversion matrix calculations are implemented by a bit-by-bit multiplication between the outputs of the token register 20 and the outputs of the data register 40 and an addition of all bits resulting from the bit-by-bit multiplication. The components T<0:n−1> of each row in the basis conversion matrix D_(sd), which are output from the token register 20 in response to the shift clocks, are respectively multiplied by the values b<0:n−1> output from the data register 30 by the “n” AND gates included in the AND gate unit 40. The outputs of the AND gate unit 40 are added by the XOR gate 50. The output of the XOR gate 50 is output in synchronization with the clock CK by the output register 60.

[0113] As described above, in an apparatus and method for basis conversion in a finite field GF(2^(n)) according to the present invention, a normal pentanomial in an arbitrary degree is used as a defining polynomial so that basis conversion between a standard representation and a dual representation may be efficiently performed. Consequently, a dual basis multiplier can be efficiently implemented.

[0114] Preferred embodiments of the present invention have been disclosed herein and, although specific terms are employed, they are used and are to be interpreted in a generic and descriptive sense only and not for purpose of limitation. Accordingly, it will be understood by those of ordinary skill in the art that various changes in form and details may be made without departing from the spirit and scope of the present invention as set forth in the following claims. 

What is claimed is:
 1. A method of converting a standard representation to a dual representation in a finite field GF(2^(n)), in which a standard basis represented coefficient vector B=(b₀, b₁, b₂, . . . , b_(n−1)) of an element B of the finite field GF(2^(n)) is converted to a dual basis represented coefficient vector B′=(b′₀, b′₁, b′₂, . . . , b′_(n−1)) using a defining polynomial x^(n)+x^(k(3))+x^(k(2))+x^(k(1))+1, the method being performed by an apparatus for basis conversion, the apparatus including a token register composed of “n” bits to store each row vector in a basis conversion matrix, a data register composed of “n” bits to store a vector to be converted, “n” number of bit multipliers performing bit-by-bit multiplications between the outputs of the token register and the outputs of the data registers, and an adder connected to the output terminals of the bit multipliers to add the results of the bit-by-bit multiplications, the method comprising: inputting the exponents n, k(3), k(2), and k(1) of the defining polynomial x^(n)+x^(k(3))+x^(k(2))+x^(k(1))+1; storing the standard basis represented coefficient vector B=(b₀, b₁, b₂, . . . , b_(n−1)) to be converted in the data register; obtaining 0-th through k(1)-th components of the dual basis represented coefficient vector B′ using a vector formula (b′₀, b′₁, b′₂, . . . , b′_(k(1)))=(b₀+b_(k(1)), b_(k(1))−1, b_(k(1)−2), . . . , b₀); obtaining (k(1)+1)-th through (k(1)+n−k(3))-th components of the dual basis represented coefficient vector B′ using a vector formula (b′_(k(1)+1), b′_(k()1)+2, . . . , b′_(k(1)+n−k(3)))=(b_(n−1), b_(n−2), . . . , b_(k(3))); obtaining (k(1)+1+n−k(3))-th through (k(1)+n−k(2))-th components of the dual basis represented coefficient vector B′ using a vector formula (b′_(k(1)+1+n−k(3)), b′_(k(1)+2+n−k(3)), . . . , b′_(k(1)+n−k(2)))=(b_(k(3)−1)+b_(n=1), b_(k(3)−2)+b_(n−2), . . . , b_(k(2))+b_(n−k(3)+k(2))); and obtaining (k(1)+1+n−k(2))-th through (n−1)-th components of the dual basis represented coefficient vector B′ using a vector formula (b′_(k(1)+1+n−k(2 )), b′_(k(1)+2+n−k(2)), . . . , b′_(n−1))=(b_(k(2)−1)+b_(n−1−k(3)+k(2))+b_(n−1), b_(k(2)−2)+b_(n−2−k(3)+k(2))+b_(n−2), . . . , b_(k(1)+1)+b_(n+1−k(3)+k(1))+b_(n+1−k(2)+k(1))).
 2. A method of converting a dual representation to a standard representation in a finite field GF(2^(n)), in which a dual basis represented coefficient vector B′=(b′₀, b′₁, b′₂, . . . , b′_(n−1)) of an element B of the finite field GF(2^(n)) is converted to a standard basis represented coefficient vector B=(b₀, b₁, b₂, . . . , b_(n−1)) using a defining polynomial x^(n) ^(n)+x^(k(3))+x^(k(2))+x^(k(1))+1, the method being performed by an apparatus for basis conversion, the apparatus including a token register composed of “n” bits to store each row vector in a basis conversion matrix, a data register composed of “n” bits to store a vector to be converted, “n” number of bit multipliers performing bit-by-bit multiplications between the outputs of the token register and the outputs of the data registers, and an adder connected to the output terminals of the bit multipliers to add the results of the bit-by-bit multiplications, the method comprising: inputting the exponents n, k(3), k(2), and k(1) of the defining polynomial; storing the dual basis represented coefficient vector B′=(b′₀, b′₁, b′₂, . . . , b′_(n−1)) to be converted in the data register; obtaining 0-th through k(1)-th components of the standard basis represented coefficient vector B using a vector formula (b₀, b₁, . . . , b_(k(1)−1), b_(k(1)))=(b′_(k(1)), b′_(k(1)−1), . . . , b′₁, b′₀+b′_(k(1))); obtaining (k(1)+1)-th through (k(2)−1)-th components of the standard basis represented coefficient vector B using a vector formula (b_(k(1)+1), b_(k(1)+2), . . . , b_(k(2)−1))=(b′_(k(2)−1)+b′_(k(3)−1)+b′_(n−1), b′_(k(2)−2)+b′_(k(3)−2)+b′_(n−2), . . . , b′_(k(1)+1)+b′_(k(1)+1+k(3)−k(2))+b′_(n+1+k(1)−k(2))); obtaining k(2)-th through (k(3)−1)-th components of the standard basis represented coefficient vector B using a vector formula (b_(k(2)), b_(k(2)+1), . . . , b_(k(3)−1))=(b′_(k(1)+k(3)−k(2))+b′_(n+k(1)−k(2)), b′_(k(1)+k(3)−k(2)−1)+b′_(n+k(1)−k(2)−1), . . . , b′_(k(1)+1)+b′_(n+1+k(1)−k(3))); and obtaining k(3)-th through (n−1)-th components of the standard basis represented coefficient vector B using a vector formula (b_(k(3)), b_(k(3)+1), . . . , b_(n−1))=(b′_(n+k(1)−k(3)), b′_(n+k(1)−k(3)−1), . . . , b′_(k(1)+1)).
 3. An apparatus for basis conversion between a standard basis and a dual basis in a finite field GF(2^(n)), by which conversion between a standard basis represented coefficient vector B=(b₀, b₁, b₂, . . . , b_(n−1)) of an element B of the finite field GF(2^(n)) and a dual basis represented coefficient vector B′=(b′₀, b′₁, b′₂, . . . , b′_(n−1)) is performed using a basis conversion matrix determined in accordance with a defining polynomial x^(n)+x^(k(3))+x^(k(2))+x^(k(1))+1, the apparatus comprising: a token register, which is composed of “n” shift registers classified into an upper token register with (k(1)+1) bits and a lower token register with (n−k(1)−1) bits, each shift register shifting input data to the left by one bit at each clock in response to an enable signal and a clock, wherein the outputs of the shift registers respectively correspond to the components of each row in the basis conversion matrix; a token controller, which receives the exponents n, k(3), k(2), and k(1) of the defining polynomial and outputs an (n−1)-bit input selection signal, the enable signal for activating the shift operation of the token register, a clock for the token register, initial values for the respective upper and lower token registers, a data input signal to a k(1)-th register of the token register, and a data input signal to an (n−1)-th register of the token register; a multiplexer, which separates the upper token register from the lower token register according to the value of k(1) in response to the input selection signal and selects a data input path for the token register; a data register, which stores a coefficient vector to be converted; an AND gate unit, which performs bit-by-bit multiplication on the output of the token register and the output of the data register; an XOR gate, which adds all of the outputs of the AND gate unit; and an output register, which is connected to the XOR gate and synchronizes the output of the XOR gate with the clock. 